<div class="col_r">

    <div class="block_friend">
        <?php
        $arrActivities = $member->getActivities(15);
        if (count($arrActivities)) {
            ?>
            <div class="title_module">
                <h5 class="hover-act-img">Hoạt động chung</h5>
            </div>
            <div class="content_module" style="margin-bottom: 20px;">
                <div id="activitiesHome" class="content_module" style="overflow-y:auto;height: auto;max-height: 300px">

                    <div id="displayActivities">
                        <?php
                        foreach ($arrActivities as $row) {
                            $lastActivityId = $row['id'];
                            ?>
                            <div class="rowActivity">
                                <a href="/thanh-vien?mid=<?php echo $row['memInfo']['id']; ?>&view=private"><?php echo $row['memInfo']['fullname']; ?></a> <?php echo $row['content']; ?> 
                            </div>
                        <?php } ?>
                        <input type="hidden" id="lastActivityId" value="<?php echo $lastActivityId;?>" />
                    </div>
                </div>
            </div>
            <div style="height: 10px; margin-top: 20px;float: left">&nbsp;</div>
            <?php
        }
        ?>
        <div class="title_module">
            <h5 class="hover-act-img">Có thể bạn quen</h5>
        </div>
        <div class="content_module">
            <?php
            $arrNotFriend = $member->getNotFriend(30);
            ?>
            <ul class="displaySuggest">
                <?php
                $num_row = $db->num_rows($arrNotFriend);
                $max = $num_row >= 5 ? 5 : $num_row;
                for ($i = 0; $i < $max; $i++) {
                    $row = $db->fetch_array($arrNotFriend);
                    ?>
                    <li >
                        <a class="thumb" href="<?php echo "/thanh-vien?mid=" . $row['id']; ?>"&view=private><img src="<?php echo $common->get_avatar_thumb($row['avatar']); ?>"></a>
                        <h4><a href="<?php echo "/thanh-vien?mid=" . $row['id']; ?>&view=private"><?php echo $row['fullname']; ?></a></h4>
                        <p></p>
                        <span>
                            <span class="icon"><img src="/images/add-friend.png" alt="<?php echo $row['fullname']; ?>"></span>
                            <a rel="<?php echo $row['id']; ?>" alt="<?php echo $row['fullname']; ?>" class="btnAddFriend" href="javascript:void(0);">Kết bạn</a>
                        </span>
                        <span title="Xóa" class="removeImage" onclick=""></span>
                    </li>
                <?php } ?>

            </ul>
            <ul class="hiddenSuggest">
                <?php
                while ($row = $db->fetch_array($arrNotFriend)) {
                    ?>
                    <li >
                        <a class="thumb" href="<?php echo "/thanh-vien?mid=" . $row['id']; ?>&view=private"><img src="<?php echo $common->get_avatar_thumb($row['avatar']); ?>"></a>
                        <h4><a href="<?php echo "/thanh-vien?mid=" . $row['id']; ?>&view=private"><?php echo $row['fullname']; ?></a></h4>
                        <p></p>
                        <span>
                            <span class="icon"><img src="/images/add-friend.png" alt="<?php echo $row['fullname']; ?>"></span>
                            <a rel="<?php echo $row['id']; ?>" alt="<?php echo $row['fullname']; ?>" class="btnAddFriend" href="javascript:void(0);">Kết bạn</a>
                        </span>
                        <span title="Xóa" class="removeImage" onclick=""></span>
                    </li>
                <?php } ?>
            </ul>
        </div>
    </div>
</div>    
